﻿using System;
using System.Collections.Generic;
using System.Text;
using Gestion.Domain.Entities;

namespace Gestion.Domain.Base
{
    [Serializable]
    public abstract class BaseDetalleRiesgoEntity : Entities.DomainEntity<Int64?>
    {

        #region properties

        public virtual String Nombre
        {
            get { return _nombre; }
            set { _nombre = value; }
        }

        public virtual Int16 Valor
        {
            get { return _valor; }
            set { _valor = value; }
        }

        public virtual RiesgoEntity Riesgo
        {
            get { return _riesgo; }
            set { _riesgo = value; }
        }
        #endregion

        #region members

        private String _nombre = "";
        private Int16 _valor = 1;

        // Relationships in which this entity acts as a parent

        // Relationships in which this entity acts as a child
        private RiesgoEntity _riesgo = null;

        #endregion

    }
}